import {
  Entity,
  PrimaryGeneratedColumn,
  Column,
  CreateDateColumn,
  UpdateDateColumn,
} from 'typeorm';

@Entity('vip_packages')
export class VipPackage {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ length: 50 })
  name: string;

  @Column({ type: 'int' })
  price: number; // 粉钻价格

  @Column({ type: 'int' })
  durationDays: number; // 有效期天数

  @Column({ type: 'simple-array', nullable: true })
  benefits: string[]; // 权益列表

  @Column({ default: true })
  isActive: boolean;

  @CreateDateColumn({ name: 'created_at' })
  createdAt: Date;

  @UpdateDateColumn({ name: 'updated_at' })
  updatedAt: Date;
}
